<template>
    <div>
        <span style="margin-right:5px"><strong>切换</strong></span>
        <el-switch
            v-model="switchValue"
            active-color="#13ce66"
            inactive-color="#ff4949">
        </el-switch>
        <div v-if="switchValue">
                <roleUserTable :switchValue="switchValue"></roleUserTable>
        </div>
        <div v-if="!switchValue">
                <userRoleTable :switchValue="switchValue"></userRoleTable>
        </div>
    </div>
</template>

<script>
 import roleUserTable from './components/roleUserTable.vue';
 import userRoleTable from './components/userRoleTable.vue';
 export default {
    name:'userRoleManage',
    components:{
    roleUserTable,
    userRoleTable
    },
    data() {
      return {
        switchValue: true
      }
    }

}
</script>